package com.evil.application.pojo.dto.order;

import com.evil.application.pojo.dto.form.control.code.ControlDTO;
import com.evil.common.application.dto.judge.JudgeOr;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class RelatedDataReqDTO {

    /**
     * 应用id
     */
    @NotNull(message = "applicationId not null")
    private Long applicationId;

    /**
     * 控件id
     */
    @NotNull(message = "control not null")
    private ControlDTO control;

    /**
     * 属于表格子控件
     */
    private Boolean beingTableControl;

    /**
     * 控件id
     */
    private Integer summaryType;

    /**
     *
     */
    @NotNull(message = "judgeOrs not null")
    private List<JudgeOr> judgeOrs;

    /**
     * 是否模糊查询 (0-否，1-是)
     */
    private Integer fuzzyQuery;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 强制使用value值匹配
     */
    private Boolean forceUseValue;

    public RelatedDataReqDTO() {
        this.beingTableControl = false;
        this.forceUseValue = false;
    }
}
